package com.java.caiquan;

import java.util.Scanner;
import com.java.util.firstutil;

public class user {


    //属性
private String Username;
private int  score;

    //方法


    public int  FIGHT(Scanner scanner){
        System.out.println("请输入对应的数字来出拳" +
                "1：拳头"+
        "2:剪刀"+
        "3:布");
        int  num = scanner.nextInt();
        if(num !=1 && num != 2 && num !=3 ){
            System.out.println("生活像一把无情刻刀，你却输错了这种东西，我多想给你一巴掌！");
        return FIGHT(scanner);
        }

        System.out.println(Username+"出的是" + firstutil.chu(num) );
    return num;
    }


    public String getUsername() {
        return Username;
    }

    public void setUsername(String username) {
        Username = username;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

}
